﻿<!DOCTYPE>
<html>
<head>
	<meta charset="utf-8">
	<title>首页</title>
	<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<link rel="stylesheet" type="text/css" href="/mp/css/style.css">
</head>
<body>
<!--top start-->
<div class="hg_top">
	<ul class="hg_top_nav">
		<li>
			<a href="/mp/train/changePage?url=/mp/special-practice">
				<img src="/mp/images/icon_one.png" />
				<span>答题练习</span>
			</a>
		</li>
		<li>
			<a href="/mp/train/changePage?url=/mp/special-answer">
				<img src="/mp/images/icon_two.png" />
				<span>自我测评</span>
			</a>
		</li>
		<li>
			<a href="/mp/train/changePage?url=/mp/exam-plan">
				<img src="/mp/images/icon_three.png" />
				<span>考试安排</span>
			</a>
		</li>
		<div class="clear_both"></div>
	</ul>
</div>
<!--top end-->
<!--专题 start-->
<ul id="ullist">

</ul>

<!--专题 end-->

<script type="text/javascript" src="/mp/js/jquery-3.1.0.min.js"></script>
<script type="text/javascript">
    $(function() {
        ExamPlan();
    });
    function ExamPlan() {
        $.ajax({
            url:'/mp/question/getExamPlan',
            async:false,
            dataType:"json",
            type:"get",
            success:function(result){
                if(result.data==null){
                    $("#ullist").html('<img src="images/nothing.png" style="width: 100%;position: fixed;top: 23%">');
                    return
                }
                for(i=0;i<result.data.length;i++){
                    var content = result.data[i].trainContent;
                    var trainId = result.data[i].trainId;
                    if(content.length>12){
                        content = content.substr(0,10)+"...";
					}
                    var style;
                    if(i%3==0){
                        style="hg_zt_one";
					}
					if(i%3==1){
                        style="hg_zt_two";
					}
					if(i%3==2){
                        style="hg_zt_three";
					}
                    $("#ullist").append("<div class="+style+"><a href='/mp/train/examDetails?trainId="+trainId+"'><span class='fleft'>"+content+"</span><font class='fright'>我要查看</font></a></div>");
                }
            }
        });
    }
</script>
</body>

</html>
